import React, { Component, PropTypes } from 'react'
import { Icon } from 'antd'
import style from './topBar.css'

export default class TopBar extends Component {
  render() {
    const { title } = this.props
    return (
      <div className={`${style.container}`}>
        <Icon
          className={`${style.leftIcon}`}
          type="left"
        />
        <div className={`${style.title}`}>
          {title}
        </div>
      </div>
    )
  }
}

TopBar.propTypes = {
  title: PropTypes.string.isRequired,
}